package joe.model;

import joe.applemusic.R;

public class BgPicture {
	private static int pictures[] = {R.drawable.bg1, R.drawable.bg2, 
		R.drawable.bg3,	R.drawable.bg4, R.drawable.bg5, R.drawable.bg6,
		R.drawable.bg7,	R.drawable.bg8, R.drawable.bg9};
	private static int lastPictureIndex = 0;
	
	public static int switchBackground() {
		if(lastPictureIndex < (pictures.length - 1)) {
			return pictures[++lastPictureIndex];
		} else {
			lastPictureIndex = 0;
			return pictures[lastPictureIndex];
		}
	}
}
